/*
 * @Author: liu.lin liu.lin@hzleaper.com
 * @Date: 2023-11-08 11:05:26
 * @LastEditors: liu.lin liu.lin@hzleaper.com
 * @LastEditTime: 2023-11-14 11:30:19
 * @FilePath: \aoi_link_frontend\src\router\index.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import NotFound from '@/page/not-found';
import { Navigate } from 'react-router-dom';
import menu from './menu';
import Layout from '@/layout';
import Detail from '@/page/split-roll';
import FpyAnalyseDetail from '@/page/fpy-analyse-detail';
const routes = [
  {
    path: '/',
    element: <Navigate to="/layout/synthesize-map" />
  },
  {
    path: '/layout',
    element: <Layout />,
    children: menu
  },
  {
    // path: '/split-roll',
    path: '/detail/:id',
    element: <Detail />
  },
  {
    path: '/fpy-detail',
    element: <FpyAnalyseDetail />
  },
  {
    path: '*',
    element: <NotFound />
  }
];

export default routes;
